home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / boot-tools / bootselector1.40 / install < prev    next >
Text File  |  1996-03-30  |  11KB  |  369 lines

  1. ;
  2. ; $VER: BootSelector Install 2.04 (30/03/96)
  3. ;
  4. ; Copyright (c) 1995 Michael Gollmick.
  5. ;
  6. ;-----------------------------------------------------
  7. ;
  8. ; English texts
  9. ;
  10.  
  11. (set #InstallVersion    "BootSelector Install-Script 2.04")
  12.  
  13. (IF (= @LANGUAGE "english")
  14. (
  15. (set speech 0)
  16.  
  17. (SET #bad-kick        "BootSelector requires at least Kickstart 2.04 !")
  18.  
  19. (set #choose-docdest    "Please choose a path for the documentation file.")
  20. (set #choose-docdest-help " The documentation-file contains the same information as the Amiga-Guide file, but in normal ASCII-format.\n The destination path is should be the same as that one, you usually store your documentations to.")
  21. (set #choose-guidedest    "Please choose a path for the AmigaGuide documentation file.")
  22. (set #choose-guidedest-help " The Amiga-Guide documentation is a file in Hypertext-format, which may be viewed with MultiView or AmigaGuide.\n The destination path should be the same as that one you usually store your AmigaGuide files to. Usually this is HELP:")
  23.  
  24. (set #select-mainf    "\n\nDo you want to install BootSelector 1.40?")
  25. (set #help-mainf    (cat " The main BootSelector file is required to choose between Startup-Sequences. This file is usually placed into the \"C:\" drawer, where it will be found easy.\n\n\n" @copyfiles-help))
  26.  
  27. (set #SelectMain    "Please choose the Processor, you are using in this machine.\n")
  28. (set #SelectMainHelp    " The Amiga-Models were shipped with different processors. If you don't know what processor is inside this machine, choose the MC 68000-version - it will work on every processor.\n")
  29.  
  30. (set #SelectStartup    "Please choose all the Startup-Sequences you want to install.\n\n")
  31. (set #SelectStartupHelp    " BootSelector needs alternative Startup-Sequences for its work. This alternative Startup-Sequences should be installed into the S:Startup's directory. If you use an older version of BootSelector, you may have alternative Startup-Sequences with same names already and you do not wish to copy all that scripts. Please choose for that reason the needet alternative scripts.\n The Installer-Script makes a savety-clone of your original Startup-Sequence, for loosing no data in an eventual mailfunktion of the script.")
  32.  
  33. (set #choose-guide    "Please choose the language you want for the Amiga-Guide documentation.")
  34. (set #choose-guide-help " The Amiga-Guide documentation is a file in Hypertext-format, which may be viewed with MultiView or AmigaGuide.")
  35.  
  36. (set #choose-doc    "Please choose the language you want for the documentation file\n")
  37. (set #choose-doc-help    " The documentation-file contains the same information as the Amiga-Guide file, but in normal ASCII-format.")
  38.  
  39. (set #support-me    (cat "This is MAILWARE.\n\nIf you use this Program regulary, you have to send me a Mail.  Thank you.\n\n"))
  40. (set #ready        "BootSelector is now installed correctly. You can reset your machine for testing.")
  41.  
  42. ))
  43.  
  44. ;=============================================================================
  45. ; german strings
  46.  
  47. (if (= @language "deutsch")
  48. (
  49.  
  50. (set speech 1)
  51.  
  52. (SET #bad-kick        "BootSelector benötigt mindestens Kickstart 2.04 !")
  53.  
  54. (set #choose-docdest    "Bitte wählen Sie einen Zielpfad für die Dokumentationsdatei.")
  55. (set #choose-docdest-help " Die Dokumentationsdatei enthält dieselben Informationen wie die Amiga-Guide-Dokumentation, aber im normalen ASCII-Format.\n Der Zielpfad sollte der Pfad sein, in dem Sie normalerweise auch Ihre Anleitungen aufbewahren.")
  56. (set #choose-guidedest    "Bitte wählen Sie einen Zielpfad für die Amiga-Guide-Dokumentation.")
  57. (set #choose-guidedest-help " Die Amiga-Guide Dokumentation ist eine Datei im Hypertext-Format, die mit MultiView oder AmigaGuide angezeigt werden kann.\n Der Zielpfad sollte der Pfad sein, in dem sie normalerweise auch Ihre AmigaGuide-Dateien aufbewahren. Normalerweise ist das das Verzeichnis Help:")
  58.  
  59. (set #select-mainf    "\n\nMöchten Sie BootSelector 1.40 installieren?")
  60. (set #help-mainf    (cat " Das Hauptprogramm von BootSelector wird dazu benötigt, zwischen den verschiedenen Startup-Sequencen zu wählen. Dieses Programm sollte normalerwise im \"C:\" Verzeichnis Ihres Systems stehen, damit es leicht gefunden werden kann.\n\n" @copyfiles-help))
  61.  
  62. (set #SelectMain    "Bitte wählen sie den Prozessor, der in Ihrem Amiga eingebaut ist.\n")
  63. (set #SelectMainHelp    " Die Amiga Modelle werden mit verschiedenen Prozessoren gebaut. Wenn Sie nicht wissen, welcher Prozessor in Ihrem Amiga steckt, dann wählen sie einfach den MC68000 - er kann von jedem höheren Prozessor emuliert werden.\n")
  64.  
  65. (set #SelectStartup    "Bitte wählen Sie alle Startup-Sequencen, die sie installiert haben möchten.\n\n")
  66. (set #SelectStartupHelp    " BootSelector benötigt alternative Startup-Sequencen, um zu funktionieren. Diese alternativen Scripte sollten im Verzeichnis S:Startup's stehen. Wenn Sie schon eine ältere Version von BootSelector benutzen, dann möchten Sie vielleicht nicht alle Startup-Sequencen kopieren. Bitte wählen Sie aus diesem Grund die benötigten alternativ-Scripte aus.\n Das Installer-Script macht eine Sicherheitskopie von Ihrer original-Startup-Sequence, damit bei einer eventuellen Fehlfunktion keine Daten verloren gehen.")
  67.  
  68. (set #choose-guide    "Bitte wählen Sie eine Sprache für die Amiga-Guide Dokumentation.")
  69. (set #choose-guide-help " Die Amiga-Guide Dokumentation ist eine Datei im Hypertext-Format, die mit MultiView oder AmigaGuide angezeigt werden kann.")
  70.  
  71. (set #choose-doc    "Bitte wählen Sie die Sprache für die Dokumentationsdatei.")
  72. (set #choose-doc-help    " Die Dokumentationsdatei enthält dieselben Informationen wie die Amiga-Guide-Dokumentation, aber im normalen ASCII-Format.")
  73.  
  74. (set #support-me    (cat "Dies ist MAILWARE.\n\nWenn Sie dieses Programm regelmäßig benutzen, sollten Sie mir eine Mail zukommen lassen.\nVielen Dank.\n\n"))
  75. (set #ready        "BootSelector ist jetzt komplett installiert. Sie können Ihren Rechner zurücksetzen um zu testen.")
  76.  
  77. ))
  78. ;=============================================================================
  79. ;
  80. ;****************************************************************************
  81. ;
  82. ; Setup
  83. ;
  84.  
  85. (if (< (/ (getversion) 65536) 37)
  86.     (abort #bad-kick)
  87. )
  88.  
  89. (set startup-dest "S:Startup's")
  90.  
  91. (complete 0)
  92.  
  93.  
  94. ;****************************************************************************
  95. ;
  96. ; Welcome
  97. ;
  98.  
  99. (complete 5)
  100.  
  101. (welcome)
  102.  
  103. (message "\nBootSelector\n Version 1.40 \n\nCopyright © 1995/1996 "
  104.      "Michael Gollmick,\nAll Rights Reserved.\n\n\n"
  105.          #InstallVersion
  106. )
  107.  
  108. (complete 10)
  109.  
  110. (SET doc-dest
  111.     (ASKDIR
  112.         (PROMPT #choose-docdest)
  113.         (HELP #choose-docdest-help)
  114.         (DEFAULT "HELP:")
  115.     )
  116. )
  117. (SET guide-dest
  118.     (ASKDIR
  119.         (PROMPT #choose-guidedest)
  120.         (HELP #choose-guidedest-help)
  121.         (DEFAULT doc-dest)
  122.     )
  123. )
  124.  
  125. ;****************************************************************************
  126. ;
  127. ; Install Main Program
  128. ;
  129.  
  130. ; Get Processor Information
  131. (SET mainfile
  132.     (ASKCHOICE
  133.         (PROMPT #SelectMain)
  134.         (HELP #SelectMainHelp)
  135.         (CHOICES
  136.             "MC 68000, MC 68010"
  137.             "MC 68020, MC 68030 (EC020/EC030)"
  138.             "MC 68040, MC 68060 (EC040/LC040,EC060)"
  139.         )
  140.         (DEFAULT 0)
  141.     )
  142. )
  143. (IF (= mainfile 0)
  144.     (COPYFILES
  145.         (SOURCE "C/BootSelector.000")
  146.         (DEST "C:")
  147.                 (newname "BootSelector")
  148.                 (infos)
  149.     )
  150. )
  151. (IF (= mainfile 1)
  152.     (COPYFILES
  153.         (SOURCE "C/BootSelector.020")
  154.         (DEST "C:")
  155.                 (newname "BootSelector")
  156.                 (infos)
  157.     )
  158. )
  159. (IF (= mainfile 2)
  160.     (COPYFILES
  161.         (SOURCE "C/BootSelector.040")
  162.         (DEST "C:")
  163.                 (newname "BootSelector")
  164.                 (infos)
  165.     )
  166. )
  167.  
  168.  
  169. (complete 20)
  170.  
  171. ;****************************************************************************
  172. ;
  173. ; Install Startup-Sequences
  174. ;
  175.  
  176. (copyfiles
  177.        (prompt #mainf)
  178.        (help   #mainf)
  179.        (source "S:Startup-Sequence")
  180.        (dest   "S:")
  181.        (newname "Startup-Sequence_saveclone")
  182. )
  183.  
  184. (complete 30)
  185.  
  186. (IF (= (EXISTS "S:Startup's/Startup-SequenceI") 1)
  187.     (copyfiles
  188.            (source "S:Startup's/Startup-SequenceI")
  189.            (dest   startup-dest)
  190.                (newname "Startup-SequenceI_saveclone")
  191.         )
  192. )
  193.  
  194. (complete 35)
  195.  
  196. ; Get startup information
  197. (set startupchen (askoptions
  198.                (prompt #Selectstartup)
  199.                (choices "Startup-SequenceI" "Startup-SequenceII" "Startup-SequenceIII" "Startup-SequenceIV" "Startup-SequenceV" "Startup-SequenceVI")
  200.                (help #SelectStartupHelp)
  201.                (default 0)
  202.              )
  203. )
  204.  
  205. (complete 40)
  206.  
  207. (if startupchen
  208.    (
  209.       (if (IN startupchen 0)
  210.          (
  211.             (copyfiles
  212.                (source "S:Startup-Sequence")
  213.                (dest   startup-dest)
  214.                (newname "Startup-SequenceI")
  215.             )
  216.  
  217.     (complete 45)
  218.  
  219.         (copyfiles
  220.                (source "S/Startup-Sequence")
  221.                (dest   "S:")
  222.         )
  223.  
  224.  
  225.          )
  226.       )
  227.  
  228.  
  229. (complete 50)
  230.  
  231.       (if (IN startupchen 1)
  232.          (
  233.             (copyfiles
  234.                (source "S/Startup-SequenceII")
  235.                (dest   startup-dest)
  236.             )
  237.          )
  238.       )
  239.  
  240. (complete 55)
  241.  
  242.       (if (IN startupchen 2)
  243.          (
  244.             (copyfiles
  245.                (source "S/Startup-SequenceIII")
  246.                (dest   startup-dest)
  247.             )
  248.          )
  249.       )
  250.  
  251. (complete 60)
  252.  
  253.       (if (IN startupchen 3)
  254.          (
  255.             (copyfiles
  256.                (source "S/Startup-SequenceIV")
  257.                (dest   startup-dest)
  258.             )
  259.          )
  260.       )
  261.  
  262. (complete 65)
  263.  
  264.       (if (IN startupchen 4)
  265.          (
  266.             (copyfiles
  267.                (source "S/Startup-SequenceV")
  268.                (dest   startup-dest)
  269.             )
  270.          )
  271.       )
  272.  
  273. (complete 70)
  274.  
  275.       (if (IN startupchen 5)
  276.          (
  277.             (copyfiles
  278.                (source "S/Startup-SequenceVI")
  279.                (dest   startup-dest)
  280.             )
  281.          )
  282.       )
  283.  
  284.   )
  285. )
  286.  
  287. (complete 75)
  288.  
  289. ;****************************************************************************
  290. ;
  291. ; Choose Guide
  292. ;
  293.  
  294. (SET guide
  295.     (ASKCHOICE
  296.         (PROMPT #choose-guide)
  297.         (HELP #choose-guide-help)
  298.         (CHOICES
  299.             "English"
  300.             "Deutsch"
  301.         )
  302.         (DEFAULT speech)
  303.     )
  304. )
  305. (IF (= guide 0)
  306.     (COPYFILES
  307.         (SOURCE "DOC/BootSelector_engl.GUIDE")
  308.         (DEST guide-dest)
  309.                 (newname "BootSelector.GUIDE")
  310.                 (infos)
  311.     )
  312. )
  313. (IF (= guide 1)
  314.     (COPYFILES
  315.         (SOURCE "DOC/BootSelector_deu.GUIDE")
  316.         (DEST guide-dest)
  317.                 (newname "BootSelector.GUIDE")
  318.                 (infos)
  319.     )
  320. )
  321.  
  322. (complete 80)
  323.  
  324. ;****************************************************************************
  325. ;
  326. ; Choose Documentation
  327. ;
  328.  
  329. (SET guide
  330.     (ASKCHOICE
  331.         (PROMPT #choose-doc)
  332.         (HELP #choose-doc-help)
  333.         (CHOICES
  334.             "English"
  335.             "Deutsch"
  336.         )
  337.         (DEFAULT speech)
  338.     )
  339. )
  340. (IF (= guide 0)
  341.     (COPYFILES
  342.         (SOURCE "DOC/BootSelector_engl.DOC")
  343.         (DEST doc-dest)
  344.                 (newname "BootSelector.DOC")
  345.                 (infos)
  346.     )
  347. )
  348. (IF (= guide 1)
  349.     (COPYFILES
  350.         (SOURCE "DOC/BootSelector_deu.DOK")
  351.         (DEST doc-dest)
  352.                 (newname "BootSelector.DOK")
  353.                 (infos)
  354.     )
  355. )
  356.  
  357. (complete 90)
  358.  
  359. ;****************************************************************************
  360. ;
  361. ; Exit
  362. ;
  363.  
  364.     (complete 99)
  365.     (MESSAGE #support-me #ready)
  366.     (complete 100)
  367.  
  368. (EXIT (QUIET))
  369.